import { Entity, PrimaryGeneratedColumn } from "typeorm";
import { Code, CreateDate, Digdit, Icon, Title, UpdateDate } from "../utils";

@Entity({
    name: 'ks_package'
})
export class KsPackage {
    @PrimaryGeneratedColumn()
    id: number;

    @Code({ default: `` })
    name: string;

    @Digdit({ default: 0 })
    version: number;

    @Title({ default: '' })
    title: string;

    @Icon({ default: '' })
    icon: string;

    @Code({ default: '' })
    author: string;

    @Code({ default: '' })
    url: string;

    @CreateDate()
    create_date: Date;

    @UpdateDate()
    udpate_date: Date;
}
